#ifndef NETWORK_H
#define NETWORK_H

/*
	Network class represents a wireless network.
	
	std::string desc is output from iwlist eth0 scan
*/

#include <string>
#include <cstdlib>

enum EncryptionType {NO_ENCRYPTION, WEP_ENCRYPTION, WPA_ENCRYPTION};

class Network
{
public:
	Network(std::string name, float quality, EncryptionType enc, std::string psk);
	Network(std::string desc);
	~Network() {};
	
	std::string Name() const {return my_name;}
	float Quality() const {return my_quality;}
	EncryptionType Encryption() const {return my_enc;}
	std::string PSK() const {return my_psk;}
	
	void Name(std::string _name) {my_name = _name;}
	void PSK(std::string _psk) {my_psk = _psk;}
		
private:
	std::string my_name;
	float my_quality;
	EncryptionType my_enc;
	std::string my_psk;
};

#endif
